﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Maps.MapControl;

namespace MyFloridaHouse.libSvOpenDistricts.ViewModel
{
    //public delegate void MapChangedEventHandler(EventArgs e);

    public partial class ViewModelBase
    {
        //public static event EventHandler MapChanged;

        //public static void RaiseMapChanged(object sender)
        //{
        //    if (MapChanged != null)
        //    {
        //        MapChanged(sender, new EventArgs());
        //    }
        //    else
        //    {
        //        // todo: Log this error
        //        //throw (new NotImplementedException("MapChanged Event is null"));
        //    }
        //}


        // catch the specific map events that cause a change to the view, then tell any object interested to react to a map change
        //public static void SubscribeToMap(Map myBingMap)
        //{
        //    myBingMap.ViewChangeStart += new EventHandler<MapEventArgs>(unsubscribeRegionLabelChangedListeners);
        //}

        //public static void unsubscribeRegionLabelChangedListeners(object sender, MapEventArgs e)
        //{
        //    RaiseMapChanged(sender);
        //}
    }
}
